package com.larsgard.gedviewer.client.service.callback;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.larsgard.gedviewer.client.event.EventBus;
import com.larsgard.gedviewer.client.event.LoggedInEvent;
import com.larsgard.gedviewer.shared.ajax.IsLoggedInResponse;

public class CheckLoginCallback implements AsyncCallback<IsLoggedInResponse> {

    @Override
    public void onFailure(Throwable caught) {

    }

    @Override
    public void onSuccess(IsLoggedInResponse result) {
	LoggedInEvent event = new LoggedInEvent();
	event.setResponse(result);
	EventBus.getInstance().fireEvent(event);
    }

}
